home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / helper / src / dir.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  846 b   |  39 lines

  1. /*
  2.  *    dir.h
  3.  */
  4.  
  5. #define    IS_DIR(dp)    (dp->d_att & 0x10)
  6.  
  7. typedef struct direct {
  8.     struct direct    *d_next;
  9.     struct direct    *d_child;
  10.     unsigned char    d_att;
  11.     unsigned short int    d_time,d_date;
  12.     unsigned long    d_size;
  13.     char        d_name[1];
  14. } DIRECT;
  15.  
  16. typedef struct {
  17.     DIRECT    *dd_top;
  18.     DIRECT    *dd_now;
  19. } DIR;
  20.  
  21. DIR    *opendir(char *dir);
  22. DIRECT    *readdir(DIR *dirp);
  23. void    seekdir(DIR *dirp,int n);
  24. void    closedir(DIR *dirp);
  25. unsigned long    sizedir(char *dir);
  26.  
  27. int    chdrv(int no);
  28. int    chdir(char *name);
  29. int    getdrv(void);
  30. int    getdir(char *name);
  31. int    mkdir(char *name);
  32. int    rmdir(char *name);
  33. int    getattr(char *name);
  34. int    disk_free(int drv, unsigned long *fr, unsigned long *ta);
  35. int    drvsts(int drv);
  36. int    isdir(char *name);
  37. char    *joint_path(char *dir,char *file);
  38. char    *file_serch(char *dir,char *file);
  39.